<template>
	<view>
		  <u-navbar
		            :title="title"
		            :autoBack="back"
					bgColor="#188B7E"
					:leftIcon="' '"
		        >
		        </u-navbar>
			<view :style="'height:'+safeArea+'px;'"></view>	
	</view>
</template>

<script>
	const systemInfo = uni.getSystemInfoSync();
	// 获取屏幕宽度
	const safeArea = systemInfo.safeArea.top;
	export default {
		name:"navbar",
		props: {
			title: {
				type: String,
				default: ""
			},
			back: {
				type: Boolean,
				default:true,
				
			},
		},
		data() {
			return {
				safeArea:safeArea+44
			};
		}
	}
</script>

<style scoped>
 
</style>